#pragma once

#include "public.h"

//! String Converter

class CStringConverter
{
public:
	
	//! Default Unicode UTF-16 to ANSI GB2312
	static std::string UTF16_To_ANSI(const std::wstring& strUtf16);

	//! ANSI GB2312 to UTF-16 little endian
	static std::wstring ANSI_To_UTF16(const std::string& strAnsi);

	//! UTF-8 to UTF-16 little endian
	static std::wstring UTF8_To_UTF16(const std::string& strUTF8);

	//! UTF16 to UTF-8
	static std::string UTF16_To_UTF8(const std::wstring& strUTF16);

	//! UTF8 to ANSI
	static std::string UTF8_To_ANSI(const std::string& strUTF8);

	//! ANSI to UTF8
	static std::string ANSI_To_UTF8(const std::string& strANSI);
};
